#ifndef __LOGIN_H__
#define __LOGIN_H__
#include "head.h"
#include "work_que.h"
#include "database_op.h"
#include "trans_file.h"
void token_generate(char *token,int len_of_token);
void tail_insert(pnQue_t pnq,Client_State_t* CS);
int verify_passwd(char* username,char* password);
int do_register_or_login_or_token(int new_fd,Factory_t* pf,train_state_t* pt,pnQue_t pnq);
#endif
